package huoye.shops.huoye.user.model;

import com.codeideology.android.lang.entity.Pojo;
import com.codeideology.android.rpc.BooleanTypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;

import huoye.shops.base.MyPojo;


/**
 * Created by user on 2017/7/25.
 */

public class User extends MyPojo{

    @SerializedName("userId") //用户ID
    private String userId;;

    @SerializedName("iCardType")
    private int iCardType;

    @SerializedName("shopLogo") //商户logo
    private String userImg;

    @SerializedName("balance") //商铺余额
    private float balance;;


    @SerializedName("shopId") //商铺ID
    private String shopId;;

    @SerializedName("shopName") //商铺名称
    private String shopName;

    @SerializedName("angentId") //代理商ID
    private String angentId;

    @SerializedName("isPowerManage") //是否是超级管理员
    private boolean isPowerManage;

    @SerializedName("isOverdue") //是否商铺过期
    private boolean isOverdue;

    //	商铺版本，0：未知；1：基础版；2：豪华版
    @SerializedName("shopVersion")
    private int shopVersion;

    public Boolean isBasicsVersion(){
        if(shopVersion == 2){
            return false;
        }
        return true;
    }




    public String getAngentId() {
        return angentId;
    }

    public void setAngentId(String angentId) {
        this.angentId = angentId;
    }

    public boolean isOverdue() {
        return isOverdue;
    }

    public void setOverdue(boolean overdue) {
        isOverdue = overdue;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getiCardType() {
        return iCardType;
    }

    public void setiCardType(int iCardType) {
        this.iCardType = iCardType;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }


    public float getBalance() {
        return balance;
    }

    public void setBalance(float balance) {
        this.balance = balance;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public boolean isPowerManage() {
        return isPowerManage;
    }

    public void setPowerManage(boolean powerManage) {
        isPowerManage = powerManage;
    }
}
